import express from 'express'
import { getDanmakus, getUserDanmakus } from '../controllers/danmaku.controller'
import { auth } from '../middleware/auth'

const router = express.Router()

// 获取房间弹幕
router.get('/rooms/:roomId', getDanmakus)

// 获取用户发送的弹幕历史
router.get('/user', auth, getUserDanmakus)

export default router
